﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.ServiceModel;
//using Spring.Objects.Factory.Attributes;
//using Spring.Context.Support;
//using Skynet.BusinessLogic.DataAccess;
//using Spring.Transaction.Interceptor;

//namespace Skynet.BusinessLogic.BusinessComponents
//{

//    [ServiceContract]
//    public interface BCInspector
//    {
//        [OperationContract]
//        void InsertMethodAudit(IEnumerable<BusinessEntities.MethodAudit> audits);

//        [OperationContract]
//        IEnumerable<BusinessEntities.MethodAudit> GetAll();
//    }
//    [Serializable]
//    public class BCInspectorImp : BCInspector
//    {   

//        public DataAccess.IMethodAuditRepository MethodAuditRepository { get; set; }        
//        public BCInspectorImp( )
//        { 
 
//        }
//        [Transaction(System.Data.IsolationLevel.ReadCommitted)]
//        public void InsertMethodAudit(IEnumerable<BusinessEntities.MethodAudit> audits)
//        {
//            foreach (var item in audits)
//            {
//                this.MethodAuditRepository.Insert(item);                
//            }            
//        }

//        #region BCInspector Members


//        public IEnumerable<BusinessEntities.MethodAudit> GetAll()
//        {
//            return this.MethodAuditRepository.GetAll();
//        }

//        #endregion
//    }
//}
